<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>


<s:layout-render name="/customerLayout.jsp" headline="Delivery Service">
    <s:layout-component name="body">
        <s:useActionBean var="actionBean" beanclass="cz.muni.fi.pa165.web.CustomerActionBean" />
        <a style="float:right; margin-right:1%;" class="btn btn-small btn-warning" href="/pa165/index.jsp/customerSearchOrder.jsp"><f:message key="back"/></a>
        <h2 style="text-align: center"><f:message key="sState"/></h2>
        <table class="table table-bordered">
            <c:forEach items="${actionBean.trackedShipment}" var="shipment">
                <tr>
                    <th><f:message key="Manager-Shipment-list-trackingNumber"/></th>
                    <th><f:message key="shipmentstate"/></th>
                    <th><f:message key="Manager-Shipment-list-creationDate"/></th>
                    <th><f:message key="Manager-Shipment-list-weight"/></th>
                    <th><f:message key="Manager-Shipment-list-distance"/></th>
                    <th><f:message key="Manager-Shipment-list-price"/></th>
                    <th><f:message key="Manager-Shipment-list-description"/></th>
                </tr>
                <tr>
                    <td><c:out value="${shipment.trackingNumber}"/></td>
                    <td><c:out value="${shipment.shipmentState}"/></td>
                    <td><c:out value="${shipment.creationDate}"/></td>
                    <td><c:out value="${shipment.weight}"/></td>
                    <td><c:out value="${shipment.distance}"/></td>
                    <td><c:out value="${shipment.price}"/></td>
                    <td><c:out value="${shipment.description}"/></td>
                </tr>
            </c:forEach>
        </table>
    </s:layout-component>
</s:layout-render>
